7c1db398f18c4c4b352db74e2f37d2471cf52155,src/org/exist/storage/NativeElementIndex.java,NativeElementIndex,remove,#,276

Before Change


                                // feed the new list with the GIDs
                                for (int j = 0; j < gidsCount; j++) {
                                	NodeId nodeId = 
                                		broker.getBrokerPool().getNodeFactory().createFromStream(is);                                        
                                    long address = StorageAddress.read(is);
                                    // add the node to the new list if it is not 
                                    // in the list of removed nodes

After Change


                            } else {
                                // data are related to our document:
                                // feed the new list with the GIDs
                                NodeId previous = null;
                                NodeId nodeId;
                                long address;
                                for (int j = 0; j < gidsCount; j++) {
                                    nodeId = broker.getBrokerPool().getNodeFactory().createFromStream(previous, is);
                                    previous = nodeId;
                                    address = StorageAddress.read(is);
                                    // add the node to the new list if it is not